// 自动生成模板UserBindManage
package user

import (
	"gitcode.com/G-YT/iHealth25/server/global"
	"gitcode.com/G-YT/iHealth25/server/model/manager"
)

// UserBindManage 用户绑定健管师
type UserBindManage struct {
	global.GVA_MODEL
	HmId          uint                    `json:"hmId" form:"hm_id" gorm:"column:hm_id;comment:健康管理师ID;"` //健康管理师ID
	HealthManager manager.FdHealthManager `json:"healthManager" gorm:"foreignKey:HmId;references:HmId;comment:关联健管师;"`
	Status        uint                    `json:"status" form:"status" gorm:"column:status;comment:审核状态 1待审核&已申请 2通过 3驳回;"` //审核状态
	Uid           uint                    `json:"uid" form:"uid" gorm:"column:uid;comment:用户ID;"`                           //用户ID
	User          User                    `json:"user" gorm:"foreignKey:Uid;references:ID;comment:关联用户;"`
}

// TableName 用户绑定健管师 UserBindManage自定义表名 fd_user_bind_manage
func (UserBindManage) TableName() string {
	return "fd_user_bind_manage"
}
